
package com.one.odf.model;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for weatherAlertType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="weatherAlertType"&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="ValidFrom" type="{}weatherAlertValidType"/&gt;
 *         &lt;element name="ValidTo" type="{}weatherAlertValidType"/&gt;
 *         &lt;element name="Description" type="{}weatherAlertDescriptionType" maxOccurs="unbounded"/&gt;
 *       &lt;/sequence&gt;
 *       &lt;attribute name="Code" use="required" type="{http://www.w3.org/2001/XMLSchema}int" /&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "weatherAlertType", propOrder = {
    "validFrom",
    "validTo",
    "description"
})
public class WeatherAlertType {

    @XmlElement(name = "ValidFrom", required = true)
    protected WeatherAlertValidType validFrom;
    @XmlElement(name = "ValidTo", required = true)
    protected WeatherAlertValidType validTo;
    @XmlElement(name = "Description", required = true)
    protected List<WeatherAlertDescriptionType> description;
    @XmlAttribute(name = "Code", required = true)
    protected int code;

    /**
     * Gets the value of the validFrom property.
     * 
     * @return
     *     possible object is
     *     {@link WeatherAlertValidType }
     *     
     */
    public WeatherAlertValidType getValidFrom() {
        return validFrom;
    }

    /**
     * Sets the value of the validFrom property.
     * 
     * @param value
     *     allowed object is
     *     {@link WeatherAlertValidType }
     *     
     */
    public void setValidFrom(WeatherAlertValidType value) {
        this.validFrom = value;
    }

    /**
     * Gets the value of the validTo property.
     * 
     * @return
     *     possible object is
     *     {@link WeatherAlertValidType }
     *     
     */
    public WeatherAlertValidType getValidTo() {
        return validTo;
    }

    /**
     * Sets the value of the validTo property.
     * 
     * @param value
     *     allowed object is
     *     {@link WeatherAlertValidType }
     *     
     */
    public void setValidTo(WeatherAlertValidType value) {
        this.validTo = value;
    }

    /**
     * Gets the value of the description property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the description property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getDescription().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link WeatherAlertDescriptionType }
     * 
     * 
     */
    public List<WeatherAlertDescriptionType> getDescription() {
        if (description == null) {
            description = new ArrayList<WeatherAlertDescriptionType>();
        }
        return this.description;
    }

    /**
     * Gets the value of the code property.
     * 
     */
    public int getCode() {
        return code;
    }

    /**
     * Sets the value of the code property.
     * 
     */
    public void setCode(int value) {
        this.code = value;
    }

}
